﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Text;
using Abrs.Model;

namespace Abrs.Services.Rest
{
    //[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ProductService : IProductService
    {
        public List<Product> GetProducts()
        {
            return new List<Product>()
                       {
                           new Product() {Id = Guid.NewGuid(), Name = "111"},
                           new Product(){Id=Guid.NewGuid(),Name="222"},
                           new Product(){Id=Guid.NewGuid(),Name="333"}
                       };

        }

        public Product GetProduct(string name,string id)
        {
            return new Product() {Id = Guid.NewGuid(), Name = name+id};
        }



        public bool CreateProduct(Product product)
        {
            return true;
        }

        public bool UpDateProduct(Product product)
        {
            return true;
        }

        public bool DeleteProduct(Product product)
        {
            return true;
        }
    }
}
